/**
 * Created by 55456 on 2016/5/15.
 */
var session = require("./index").locals.session;
module.exports = {
    set:(token,user) => {
        session[token] = JSON.stringify(user);
    },
    get:(token) => {
        return session[token];
    }
};